package com.example.shysx11.web;

import com.example.shysx11.service.ISupervisorService;
import com.example.shysx11.vos.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin("*")
@RestController
@RequestMapping("/supervisor")
public class SupervisorWeb {

    @Autowired
    private ISupervisorService service;

    @RequestMapping("/getSupervisors")
    public ResultVo getUsers() {
        return service.getSupervisors();
    }


    @RequestMapping("/getOne")
    public ResultVo getOne(String telId ,String password) {
        return service.getOne(telId,password);
    }


}



